<?php

namespace App\Controller\Api\Sign;

use App\Controller\Api\BaseController;
use App\Middleware\GetAuthTokenMiddleware;
use App\Service\Sign\SignTaskService;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middleware;
use Yj\Apidog\Annotation\PostApi;


/**
 * @Controller(prefix="api/sign/task")
 * @Middleware(GetAuthTokenMiddleware::class)
 */
class SignTaskController extends BaseController
{
    /**
     * @Inject()
     * @var SignTaskService
     */
    protected $signTaskService;

    /**
     * @PostApi(path="lists")
     */
    public function lists()
    {
        $user_id = $this->getUid(false);
        $data = $this->signTaskService->page(false)->lists(_Collect(['status' => 1]), $user_id);
        _SUCCESS($data);
    }

    public function add()
    {

    }
}